﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleRightsForm.aspx.cs" Inherits="Enter.Web.SystemAdmin.sys.RoleRightsForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/admin_css.css" rel="stylesheet" type="text/css" />

    <script>
        function checkMenu(obj) {
            var i, length, vName;
            var menuObj = document.forms[0].menuNo;
            var menuNo = obj.value;
            var mObj, menuPath;
            var ck = obj.checked;
            length = menuObj.length;
            for (i = 0; i < length; i++) {
                mObj = menuObj[i];
                menuPath = menuObj[i].menuPath;
                //alert(menuPath+":"+menuNo);
                if (menuPath.indexOf("_" + menuNo + "_") >= 0) {
                    mObj.checked = ck;
                }
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="table2" height="1" cellspacing="1" cellpadding="3" border="0" width="100%"
            align="center">
            <tbody>
                <tr>
                    <td class="title" nowrap align="center" colspan="2" height="25">
                        编辑角色权限
                    </td>
                </tr>
                <tr>
                    <td class="td1" style="width: 20%" align="center" height="25">
                        权限列表
                    </td>
                    <td class="td1" align="left">
                        <table class="tableBorder" id="valTable" cellspacing="1" cellpadding="3" width="99%"
                            align="center" border="0" runat="server">
                        </table>
                        <br>
                        <input name="chkall" type="checkbox" value="on" onclick="checkAll('chkall','menuNo')">选择所有权限
                    </td>
                </tr>
                <tr>
                    <td height="25" align="center" class="td" colspan="2">
                        <asp:Button ID="btnApply" runat="server" Width="74px" Text="确认" OnClick="btnApply_Click">
                        </asp:Button>
                        &nbsp;&nbsp;&nbsp;
                        <input type="button" name="btnBack" value=" 返 回 " onclick="location.href='RoleList.aspx';">
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
